package day05;

import java.util.Scanner;

//成绩统计
public class Statistics {
    public static void main(String[] args) {
        double score=0,average = 0;
        Scanner sc = new Scanner(System.in);
        for (int i = 1; i <=10 ; i++) {
            System.out.println("请输入您的第"+i+"次成绩");
             score += sc.nextDouble();

             if(i==10) {
                 System.out.println("总分为"+score);
                 average = score / i;
                 System.out.println("您的平均分为：" + average);
             }
        }

    }
}
